package org.csmz.exption01;

public class Example22 {
    public static void main(String[] args){
        int num1 = 10;
        int num2 = 0;
        try {
        int result = num1 / num2;
        System.out.println("10除以0的结果是"+result);
    }catch (Exception e) {
        System.out.println("计算结果出现异常，异常信息为"+e.getMessage());
    }
        System.out.println("执行try...catch语句后的代码！");
}
}

